/* This is a simple program that prints out the number 
 * sequence 1 to max, each number on a new line.
 * Uses ecrire() to write to the console and lire() to get input
 */

#include "increment.h"

void increment(){

  int n;
  int i;
  char buffer[10];

  ecrire("Increment\n");
  ecrire("Enter N:");
  lire(buffer,10);
  ecrire("\n");

  n = atoi(buffer);

  for(i=1; i<=n; i++){
    ecrire(itoa(i,buffer,10));
    ecrire("\n");
  }
  ecrire("increment done\n"); 
  quitter(0);
}
